package com.example.demo.sevice.impl;

import com.example.demo.bean.Order;

import com.example.demo.dao.Dao;
import com.example.demo.sevice.OrederService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrederService {
    @Autowired
    private Dao dao;

    /*查询数据 */
    @Override
    public List<Order> find() {
        return dao.find();
    }

    /*新增数据*/
    @Override
    public void addOrder(String PatName) {
        dao.addOrder(PatName);
    }

    /*删除数据*/
    @Override
    public void deleteOrder(String PatName) {
        dao.deleteOrder(PatName);
    }

    /*修改数据*/
    @Override
    public void updateOrder(Order order) {
        dao.updateOrder(order);
    }

    /*关联查*/
    @Override
    public List<Order> dou() {
        return dao.dou();
    }

    /*关联查*/
    @Override
    public List<Order> dou1() {
        return dao.dou1();
    }

    /*关联查*/
    @Override
    public List<Order> dou2() {
        return dao.dou2();
    }

    /*关联查*/
    @Override
    public List<Order> dou3(String Hospital) {
        return dao.dou3(Hospital);
    }

    @Override
    public List<Order> dou4(String Hospital) {
        return dao.dou4(Hospital);
    }

    @Override
    public List<Order> dou5(String Hospital) {
        return dao.dou5(Hospital);
    }
}
